package easy

import "workspace/node"

func MiddleNode(head *node.ListNode) *node.ListNode {
	fast, slow := head, head
	for fast != nil && fast.Next != nil {
		slow = slow.Next
		fast = fast.Next.Next
	}
	return slow
}
